import java.util.Arrays;
import java.util.Scanner;
/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-11-13
 * Time: 10:13
 */
class Student{
   private String name;
    private int age;
    private String stuNum;

    public static String className;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    /* public Student(String name,int age,String stuNum){
            this.name = name;
            this.age = age;
            this.stuNum = stuNum;
        }*/
    public void print(){
        System.out.println("姓名："+this.name+" 年龄： "+this.age+" 学号："+this.stuNum);
    }

}

public class Text {

    public static void main(String[] args) {
        Student student = new Student();
        student.setName("lise");
        Student.className = "1班";
        System.out.println(student.getName());
        student.print();
        System.out.println(Student.className);

    }
    public static boolean find(int[] array) {
        for (int i = 0; i < array.length - 2; i++) {
            int count = 0;
            for (int j = i; j <= i + 2; j++) {
                if (array[j] % 2 != 0) {
                    count++;
                }
            }
            if (count == 3) {
                return true;
            }
        }
        return false;
    }

    public static void main1(String[] args) {
        int[] array = {8, 5, 10, 7, 9, 5};
        for (int i = 0; i < array.length - 1; i++) {
            for (int j = 0; j < array.length - 1 - i; j++) {
                if (array[j] > array[j + 1]) {
                    int temp = array[j];
                    array[j] = array[j + 1];
                    array[j + 1] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(array));
    }

    public static void main2(String[] args) {
        int[] array = {4, 4, 5, 5, 8};
        for (int i = 0; i < array.length; i++) {
            int flag = 0;
            for (int j = 0; j < array.length; j++) {
                if (array[i] == array[j] && j != i) {
                    flag = 1;
                    break;
                }
            }
            if (flag == 0) {
                System.out.println(array[i]);
            }
        }
    }

    public static void main3(String[] args) {
        int[] array = {2, 2, 1, 1, 2, 2, 2};
        for (int i = 0; i < array.length; i++) {
            int count = 1;
            for (int j = 0; j < array.length; j++) {
                if (array[i] == array[j] && j != i) {
                    count++;
                }
            }
            if (count > array.length / 2) {
                System.out.println(array[i]);
                return;
            }
        }
    }

    public static void main5(String[] args) {
        int[] array = {1, 3, 5, 8, 9, 4};
        boolean ret = find(array);
        System.out.println(ret);
        String s;


    }

}
